all: program

#program:
#	flex program.l
#	bison -d program.y -o program.cc
#	gcc -c lex.yy.c -o lex.yy.o
#	g++ -I./ program.cc node.cpp lex.yy.o -o $@

program:
	bison program.ypp
	bison -d program.y
	flex program.l
	gcc -c lex.yy.c
	g++ program.tab.cpp node.cpp lex.yy.o -o program

clean:
	rm -rf program.tab.c program.tab.cpp program.tab.h lex.yy.c lex.yy.o program

